package com.webservice.xmloper.managercode;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("rule")
public class SmcsRule {
	private String subtype;
	
	@XStreamAlias(value="valueStart")
	private String value_start;
	
	@XStreamAlias(value="valueEnd")
	private String value_end;
	
	@XStreamImplicit
	private List<KeywordRange> keyword_ranges = new ArrayList<KeywordRange>();
	
//	@XStreamImplicit
//	private List keyword_range = new ArrayList();
//	
//	public void addKeywordRange(Integer keyRange){
//		this.keyword_range.add(keyRange);
//	}
	
	public String getSubtype() {
		return subtype;
	}
	public void setSubtype(String subtype) {
		this.subtype = subtype;
	}
	public String getValue_start() {
		return value_start;
	}
	public void setValue_start(String value_start) {
		this.value_start = value_start;
	}
	public String getValue_end() {
		return value_end;
	}
	public void setValue_end(String value_end) {
		this.value_end = value_end;
	}
//	public List getKeyword_range() {
//		return keyword_range;
//	}
//	public void setKeyword_range(List keyword_range) {
//		this.keyword_range = keyword_range;
//	}
	public List<KeywordRange> getKeyword_ranges() {
		return keyword_ranges;
	}
	public void setKeyword_ranges(List<KeywordRange> keyword_ranges) {
		this.keyword_ranges = keyword_ranges;
	}
}
